{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="javascript:;">佣金明细</a></li>
</ul>
<div class="app-content">
    <!--顶部操作-->
    <div class="app-filter">
        <div class="filter-list">
            <form action="" method="get" class="form-horizontal" role="form" id="form1">
                <input type="hidden" name="c" value="site" />
                <input type="hidden" name="a" value="entry" />
                <input type="hidden" name="m" value="{MODULE_NAME}" />
                <input type="hidden" name="p" value="dating" />
                <input type="hidden" name="ac" value="matchmaker" />
                <input type="hidden" name="do" value="commissionList" />
                <input type="hidden" name="type" value="{$type}" />
                <div class="form-group">
                    <div class="col-sm-2 control-label">用户MID</div>
                    <div class="col-sm-9">
                        <input type="number" class="form-control" name="mid" value="{$mid}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">类型</label>
                    <div class="col-sm-9">
                        <div class="btn-group">
                            <a href="{php echo wl_filter_url('type:0');}" class="btn {if $type == 0}btn-primary{else}btn-default{/if}">全部</a>
                            <a href="{php echo wl_filter_url('type:1');}" class="btn {if $type == 1}btn-primary{else}btn-default{/if}">收入</a>
                            <a href="{php echo wl_filter_url('type:2');}" class="btn {if $type == 2}btn-primary{else}btn-default{/if}">支出</a>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <div class="col-sm-9">
                        <button class="btn btn-primary" type="submit">搜索</button>
                        <a href="{php echo web_url('dating/matchmaker/commissionList')}" class="btn btn-danger">清除</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--表格信息-->
    <div class="app-table-list">
        <!--列表信息-->
        <div class="table-responsive order-list">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th class="text-center">MID</th>
                        <th class="text-center">用户昵称</th>
                        <th class="text-center">类型</th>
                        <th class="text-center">金额</th>
                        <th class="text-center">描述</th>
                        <th class="text-center">时间</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {loop $list $key $item}
                        <tr class="text-center">
                            <td>{$item['mid']}</td>
                            <td>{$item['nickname']}</td>
                            <td>
                                {if $item['type'] == 1}
                                    <label class="label label-success">收入</label>
                                {else}
                                    <label class="label label-danger">支出</label>
                                {/if}
                            </td>
                            <td>
                                {if $item['type'] == 1}
                                    <label class="label label-success">{$item['money']}</label>
                                {else}
                                    <label class="label label-danger">{$item['money']}</label>
                                {/if}
                            </td>
                            <td>{$item['reason']}</td>
                            <td>{$item['create_time']}</td>
                            <td>
                                {if $item['orderno']}
                                    <a href="{php echo web_url('dating/matchmaker/orderList',['orderno'=>$item['orderno']])}" class="btn btn-primary btn-sm">查看</a>
                               {/if}
                            </td>
                        </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
        <!--操作按钮 分页信息-->
        <div class="app-table-foot clearfix">
            <div class="pull-right">{$pager}</div>
        </div>
    </div>
</div>
{php include wl_template('common/footer');}